CLASSPATH = -classpath .:jdbc/ojdbc14.jar

all: question_comment student_question change_request documents

question : question_type question_content PopulateQuestions.class
	java $(CLASSPATH) PopulateQuestions
question_content: user
user: role
role:

question_type:
exam_question: question exam

question_comment: question user PopulateComment.class
	java $(CLASSPATH) PopulateComment

source_file: question

student_question: student_user exam PopulateStudents.class
	java $(CLASSPATH) PopulateStudents
student_user:
exam: user PopulateExam.class
	java $(CLASSPATH) PopulateExam

change_request: question revision_type PopulateChangeRequest.class
	java $(CLASSPATH) PopulateChangeRequest
revision_type:

student_question_source: student_question

documents: DocumentUpload.class
	java $(CLASSPATH) DocumentUpload

# Rules to compile the java code
DocumentUpload.class: DocumentUpload.java
	javac $(CLASSPATH) DocumentUpload.java

PopulateQuestions.class: PopulateQuestions.java
	javac $(CLASSPATH) PopulateQuestions.java

PopulateStudents.class: PopulateStudents.java
	javac $(CLASSPATH) PopulateStudents.java

PopulateChangeRequest.class: PopulateChangeRequest.java
	javac $(CLASSPATH) PopulateChangeRequest.java

PopulateComment.class: PopulateComment.java
	javac $(CLASSPATH) PopulateComment.java

PopulateExam.class: PopulateExam.java
	javac $(CLASSPATH) PopulateExam.java

clean:
	rm *.class


